#include "WorkerTest.h"

void TestTask::run(){
	//std::cout << "TestTask" << std::endl;
	usleep(20000);
	worker->blockQueue->put("test");
}

void TestTaskA::run(){
	std::string content;
	if (worker->blockQueue->get(content)){
		std::cout << "TestTaskA " << content << std::endl;
	}
}

int main(){
	TestWorker worker("testWorker");
	sleep(1);
	return 0;
}
